package com.alimama.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alimama.dao.IGoodsInfoDao;
import com.alimama.dao.IOrderDao;
import com.alimama.entity.shop.Order;
import com.alimama.shop.service.IOrderService;

public class OrderServiceImpl implements IOrderService{

	private static final Logger logger = LoggerFactory.getLogger(OrderServiceImpl.class);
	
	@Resource
	IOrderDao orderDao;
	
	@Resource
	IGoodsInfoDao goodsInfoDao;
	
	/**
	 * 按订单号查询
	 */
	@Override
	public Order queryByOrderNo(String OrderNo) {
		return null;
	}

	/**
	 * 分页查询
	 */
	@Override
	public List<Order> queryByPage(int firstResult, int maxResult) {
		return null;
	}

	/**
	 * 添加  
	 */
	@Override
	public boolean add(Order order) {
		
		boolean fals = orderDao.add(order)>1;
		
		return fals;
	}

	/**
	 * 修改
	 */
	@Override
	public boolean update(Order order) {
		return false;
	}

}
